home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / hview / guide_files / hview_stubs.c next >
Encoding:
C/C++ Source or Header  |  1992-03-31  |  2.6 KB  |  146 lines

  1. /*
  2.  * hview_stubs.c - Notify and event callback function stubs.
  3.  * This file was generated by `gxv' from `hview.G'.
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <sys/param.h>
  8. #include <sys/types.h>
  9. #include <xview/xview.h>
  10. #include <xview/panel.h>
  11. #include <xview/textsw.h>
  12. #include <xview/xv_xrect.h>
  13. #include "hview_ui.h"
  14.  
  15. void    gamma_proc();
  16.  
  17. /*
  18.  * Global object definitions.
  19.  */
  20. hview_win_objects    *Hview_win;
  21.  
  22. #ifdef MAIN
  23.  
  24. /*
  25.  * Instance XV_KEY_DATA key.  An instance is a set of related
  26.  * user interface objects.  A pointer to an object's instance
  27.  * is stored under this key in every object.  This must be a
  28.  * global variable.
  29.  */
  30. Attr_attribute    INSTANCE;
  31.  
  32. main(argc, argv)
  33.     int    argc;
  34.     char    **argv;
  35. {
  36.     /*
  37.      * Initialize XView.
  38.      */
  39.     xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
  40.     INSTANCE = xv_unique_key();
  41.     
  42.     /*
  43.      * Initialize user interface components.
  44.      * Do NOT edit the object initializations by hand.
  45.      */
  46.     Hview_win = hview_win_objects_initialize(NULL, NULL);
  47.     
  48.     
  49.     /*
  50.      * Turn control over to XView.
  51.      */
  52.     xv_main_loop(Hview_win->win);
  53.     exit(0);
  54. }
  55.  
  56. #endif
  57.  
  58.  
  59. /*
  60.  * Notify callback function for `button2'.
  61.  */
  62. void
  63. make_perfect_colors(item, event)
  64.     Panel_item    item;
  65.     Event        *event;
  66. {
  67.     hview_win_objects *ip = (hview_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
  68.     
  69.     fputs("hview: make_perfect_colors\n", stderr);
  70.     
  71.     /* gxv_start_connections DO NOT EDIT THIS SECTION */
  72.  
  73.     /* gxv_end_connections */
  74.  
  75. }
  76.  
  77. /*
  78.  * Notify callback function for `slider1'.
  79.  */
  80. void
  81. hview_win_slider1_notify_callback(item, value, event)
  82.     Panel_item    item;
  83.     int        value;
  84.     Event        *event;
  85. {
  86.     hview_win_objects *ip = (hview_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
  87.     
  88.     fprintf(stderr, "hview: hview_win_slider1_notify_callback: value: %d\n", value);
  89.     
  90.     /* gxv_start_connections DO NOT EDIT THIS SECTION */
  91.  
  92.     gamma_proc(item, value, event);
  93.     
  94.     /* gxv_end_connections */
  95.  
  96. }
  97.  
  98. /*
  99.  * User-defined action for `slider1'.
  100.  */
  101. void
  102. gamma_proc(item, value, event)
  103.     Panel_item    item;
  104.     int        value;
  105.     Event        *event;
  106. {
  107.     fputs("hview: gamma_proc\n", stderr);
  108. }
  109.  
  110. /*
  111.  * Notify callback function for `button1'.
  112.  */
  113. void
  114. quit_proc(item, event)
  115.     Panel_item    item;
  116.     Event        *event;
  117. {
  118.     hview_win_objects *ip = (hview_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
  119.     
  120.     fputs("hview: quit_proc\n", stderr);
  121.     
  122.     /* gxv_start_connections DO NOT EDIT THIS SECTION */
  123.  
  124.     /* gxv_end_connections */
  125.  
  126. }
  127.  
  128. /*
  129.  * Repaint callback function for `can'.
  130.  */
  131. void
  132. canvas_repaint_proc(canvas, paint_window, display, xid, rects)
  133.     Canvas        canvas;
  134.     Xv_window    paint_window;
  135.     Display        *display;
  136.     Window        xid;
  137.     Xv_xrectlist    *rects;
  138. {
  139.     fputs("hview: canvas_repaint_proc\n", stderr);
  140.     
  141.     /* gxv_start_connections DO NOT EDIT THIS SECTION */
  142.  
  143.     /* gxv_end_connections */
  144.  
  145. }
  146.